package znbkListSc.activity;

import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.WindowManager;
import android.view.inputmethod.InputMethodManager;

import com.example.lancooznbk.R;
import com.example.lancooznbk.view.base.BaseActivity;

import lancooControl.AndroidBug5497Workaround;
import znbkListSc.fragment.CollectionListFragment;

/**
 * Created by Administrator on 2018\2\9 0009.
 */

public class CollectionListActivity extends BaseActivity {
    @Override
    public int attachLayoutRes() {
        return R.layout.hyznbk_activity_to_fragment_main;
    }

    @Override
    protected void initViews() {

        AndroidBug5497Workaround.assistActivity(this);
        Bundle bundle = getIntent().getExtras();

        //核心代码.
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        }

        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction transaction = fm.beginTransaction();
        transaction.add(R.id.fl_container,new CollectionListFragment());
        transaction.commit();
    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }
}
